﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:igCA="http://infragistics.com/Chart"
	x:Class="CCSManager.AppUsage"
	x:Name="Window"
	Title="AppUsage"
	Width="1280" Height="750" SnapsToDevicePixels="True" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" Background="{DynamicResource BG_bronze}" >

    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>

        </Grid.RowDefinitions>
        <StackPanel Margin="0,0,0,0" Grid.RowSpan="2">
            <!-- SignIn-SignOut -->
            <Grid Grid.Column="0" Grid.Row="0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="130"/>
                    <ColumnDefinition Width="50"/>
                </Grid.ColumnDefinitions>
                <Grid Grid.Column="1">
                    <Button Margin="0,10,0,20" Style="{DynamicResource SimpleButton}" VerticalAlignment="Top" Height="26" Content="Sign Out" HorizontalAlignment="Stretch" Name="SignOutButton" Click="SignOutButton_Click" />
                </Grid>
            </Grid>

            <!-- TitleBar -->
            <Grid Style="{DynamicResource TitleBarBG}" Height="35">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="330"/>
                    <ColumnDefinition Width="50"/>
                </Grid.ColumnDefinitions>
                <TextBlock Style="{DynamicResource TitleBarText}" Text="CCS Manager" FontFamily="Segoe" FontWeight="Light" Margin="50,-2,0,0" VerticalAlignment="Center" />
                <StackPanel Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right">
                    <Canvas Width="24" Height="24" Background="{DynamicResource StatusOK}" VerticalAlignment="Top" Margin="0,4,10,0" />
                    <TextBlock Style="{DynamicResource NavBarText}" Margin="0,0,0,0" Foreground="#7FFFFFFF" >Server Status -</TextBlock>
                    <TextBlock Style="{DynamicResource NavBarText}" Margin="6,0,0,0" Foreground="#FF98E434" FontWeight="Bold" > Running</TextBlock>
                    <Border BorderThickness="1,0,0,0" Margin="20,0,0,0" Padding="20,0,0,0">
                        <Border.BorderBrush>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#7FFFFFFF" Offset="0.2"/>
                                <GradientStop Color="#00FFFFFF" Offset="1"/>
                                <GradientStop Color="#00FFFFFF" Offset="0"/>
                                <GradientStop Color="#7FFFFFFF" Offset="0.8"/>
                            </LinearGradientBrush>
                        </Border.BorderBrush>
                        <TextBlock Style="{DynamicResource NavBarText}" Margin="0,0,0,0"  VerticalAlignment="Center">Azure Account</TextBlock>
                    </Border>
                </StackPanel>
            </Grid>
            <Grid Margin="50">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"></RowDefinition>
                    <RowDefinition Height="*"></RowDefinition>
                </Grid.RowDefinitions>
                <Button Height="28" Name="BackToDbButton" HorizontalAlignment="Left" Style="{DynamicResource SimpleButton}" Width="Auto" Click="BackToDbButton_Click">Back to Dashboard</Button>
                <StackPanel Grid.Row="1" Grid.Column="0">
                    <TabControl Style="{DynamicResource SimpleTabControl}" Name="tabControl1">
                        <TabItem Header="Revenue" Name="tabItem1" Style="{DynamicResource SimpleTabItem}">
                            <Border Style="{DynamicResource ContainerOutline}" CornerRadius="12,12,12,12" Margin="0,0,0,0">
                                <StackPanel>
                                    <Grid Margin="6,0,6,0" VerticalAlignment="Top" >
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="*"/>
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="*"/>
                                            <ColumnDefinition Width="24"/>
                                        </Grid.ColumnDefinitions>
                                        <TextBlock Style="{DynamicResource SectionHead1}"  VerticalAlignment="Top" Margin="0,4,0,0" FontWeight="Normal" ><Run Text="Revenue"/></TextBlock>
                                    </Grid>
                                    <TabControl Margin="6,0,6,6" Style="{DynamicResource SimpleTabControl}" IsSynchronizedWithCurrentItem="True" Grid.Column="1" HorizontalAlignment="Stretch">
                                        <TabItem Style="{DynamicResource SimpleTabItem}" Header="Purchases Over Time">
                                            <igCA:XamChart x:Name="CombinedRevenueOverTimeChart" Style="{StaticResource XamChartStyle}" Margin="0" Height="300" Width="Auto" HorizontalAlignment="Stretch">
                                                <igCA:XamChart.Legend>
                                                    <igCA:Legend/>
                                                </igCA:XamChart.Legend>
                                                <igCA:XamChart.Scene>
                                                    <igCA:Scene BorderBrush="Black">
                                                        <igCA:Scene.GridArea>
                                                            <igCA:GridArea Style="{StaticResource GridAreaStyle}"/>
                                                        </igCA:Scene.GridArea>
                                                    </igCA:Scene>
                                                </igCA:XamChart.Scene>
                                                <igCA:XamChart.Axes>
                                                    <igCA:Axis
					                                    AxisType="PrimaryX"
					                                    Animation="{StaticResource AxisAnimation}"
					                                    MajorGridline="{StaticResource AnimationMarkX}"
					                                    Label="{StaticResource AnimationLabelsX}"/>
                                                    <igCA:Axis
					                                    AxisType="PrimaryY"
					                                    Animation="{StaticResource AxisAnimation}"
					                                    MajorGridline="{StaticResource AnimationMarkY}"
					                                    Label="{StaticResource AnimationLabelsY}">
                                                    </igCA:Axis>
                                                </igCA:XamChart.Axes>
                                            </igCA:XamChart>
                                        </TabItem>
                                        <TabItem Style="{DynamicResource SimpleTabItem}" Header="Purchase By Volume">
                                            <Grid>
                                                <TextBlock><Run Text="N/A"/></TextBlock>
                                            </Grid>
                                        </TabItem>
                                        <TabItem Style="{DynamicResource SimpleTabItem}" Header="Purchase By Subscription">
                                            <Grid>
                                                <TextBlock><Run Text="N/A"/></TextBlock>
                                            </Grid>
                                        </TabItem>
                                    </TabControl>
                                </StackPanel>
                            </Border>
                        </TabItem>
                        <TabItem Style="{DynamicResource SimpleTabItem}" Header="Installations"></TabItem>

                        <TabItem Style="{DynamicResource SimpleTabItem}" Header="Licenses Users"></TabItem>
                    </TabControl>
                </StackPanel>






            </Grid>
        </StackPanel>



    </Grid>
</Window>
